<%@page import="schedule.ScheduleMyba"%>
<%@page import="approval.ApprovalDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	request.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
	<jsp:useBean id="dto" class="approval.ApprovalDTO" />
	<jsp:setProperty property="*" name="dto" />
	<%
		ApprovalDAO dao = new ApprovalDAO();
		dao.setDto(dto);
		//session값으로 수정자 세팅 ============ //
		dto.setMd_pp((String) session.getAttribute("mid"));
		//============================================== //
		String nanum = request.getParameter("nanum");
		int yn = dao.update(nanum);
	%>
	<jsp:useBean id="vo" class="schedule.ScheduleVo" />
	<jsp:setProperty property="*" name="vo" />
	<%
		if (nanum.equals("03")) {
			String name = request.getParameter("SA_NM");
			ScheduleMyba sm = new ScheduleMyba();
			sm.setSv(vo);
			sm.setSA_NM(name);

			if (sm.insert()) {
				out.print("ㅎㅎ");
			} else {
				out.print("뭐여");
			}
		}
	%>
</body>
</html>